#include "mainwindow.h"
#include <QApplication>
#include "dlg_login.h"
int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    Dlg_Login dlg;
    dlg.show();
    int ret = dlg.exec();
    if(1 == ret)
    {
        //加载游戏设置
        g_gameSettings.loadSettings();

        //加载并显示窗口
        MainWindow w;
        w.show();

        //保存游戏设置
        g_gameSettings.saveSettings();
        //进入主事件循环
        return a.exec();
    }
    if(0 == ret)
    {
        exit(0);
        return 0;
    }
    return 0;
}
